package cn.tedu.csmall.product.pojo.dto;

import cn.tedu.csmall.product.service.IAlbumService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumAddNewDTO implements Serializable {
    /**
     * 相册名称
     */
   @ApiModelProperty(value = "相册名称",required = true)
   @NotNull(message="添加相册失败，必须提交相册名称")
   private String name;

    /**
     * 相册简介
     */
   @ApiModelProperty(value = "相册简介",required = true)
   @NotNull(message = "添加相册失败，必须提交相册简介！")
   private String description;

    /**
     * 排序序号
     */
   @ApiModelProperty(value = "排序序号",required = true)
   //@NotEmpty
   private Integer sort;

}

